<script setup lang="ts">
import type { FileItem } from '@/ui/components/FaFileUpload/index.vue'
import { toast } from 'vue-sonner'

const files = ref<FileItem[]>([])
let msg:string =ref('')

function handleSuccess() {
    toast.success(msg)
}
</script>

<template>
    <div>
        <FaPageMain>
            <FaFileUpload v-model="files" action="/api/dataHandle/readExcel" :after-upload="(response) => {
                msg = response.msg;
                return response.data.url;
                }" multiple
                @on-success="handleSuccess" />
        </FaPageMain>

        <dv-full-screen-container>content</dv-full-screen-container>
    </div>

</template>